package com.yc.cloud.model;

import com.yc.cloud.sys.entity.SysDepartment;
import com.yc.cloud.sys.entity.SysRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author 杨智杰
 * @since 2021/8/16 10:47
 */
@Data
@Accessors(chain = true)
public class UserInfo {

    @ApiModelProperty(value = "用户Id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "头像")
    private String photo;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "登录名")
    private String loginName;

    @ApiModelProperty(value = "登陆密码")
    private String password;

    @ApiModelProperty(value = "加密盐")
    private String sale;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "最终登录时间")
    private String loginTime;

    @ApiModelProperty(value = "最终登录IP")
    private String loginHost;

    @ApiModelProperty(value = "累计登录次数")
    private Integer loginCount;

    @ApiModelProperty(value = "当前状态")
    private Integer status;

    @ApiModelProperty(value = "用户归属部门列表")
    private List<SysDepartment> deptList;

    @ApiModelProperty(value = "用户归属角色列表")
    private List<SysRole> roleList;

    @ApiModelProperty(value = "用户拥有权限字符列表")
    private List<String> authStrList;

}
